//
//  RegistView.h
//  xpkc
//
//  Created by TopSageOSX on 15/3/5.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+Shake.h"

typedef enum{
    RegistStatueSucc,
    RegistStatueUsernameError,
    RegistStatueEmailError,
    RegistStatuePhoneError,
    RegistStatueNetError
}RegistStatue;

/**
 *  注册视图代理协议
 */
@protocol registViewDelegate <NSObject>

/**
 *  注册代理方法
 *
 *  @param username 用户名
 *  @param password 密码
 *  @param email    邮箱
 *  @param phone    手机
 */
- (void)registerWithUsername:(NSString *)username andPassword:(NSString *)password andEmail:(NSString *)email andPhone:(NSString *)phone;

- (void)showUserProtocol;

@end
@interface RegistView : UIView<UITextFieldDelegate>

@property (nonatomic, assign)id<registViewDelegate> delegate;

/**
 *  注册状态
 *
 *  @param statue 状态
 */
- (void)registStatue:(RegistStatue)statue;

@end
